package com.fun.feifun.modules.business.dao;

import com.fun.feifun.modules.business.model.BusinessGoodsSupplierSort;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fun.feifun.modules.business.model.dto.BusinessGoodsRouteDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 业务商品路由配置 Mapper 接口
 * </p>
 *
 * @author wkf
 * @since 2024-06-20
 */
public interface BusinessGoodsSupplierSortMapper extends BaseMapper<BusinessGoodsSupplierSort> {

    List<BusinessGoodsRouteDto> getGoodsRoute(@Param("goodsId") Long goodsId);

    List<BusinessGoodsRouteDto> getGoodsRoutes(@Param("goodsIds") List<Long> goodsIds);

    BusinessGoodsRouteDto getRoute(@Param("goodsId") Long goodsId,@Param("supplierId") Long supplierId);
}
